Repository navigation
docs: add a credential broker example to MCP settings - #1191
Open
forever8896 wants to merge 2 commits into
Open
forever8896 wants to merge 2 commits into
forever8896 wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
forever8896
marked this pull request as ready for review
November 25, 2026 14:03
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Secrets saved in
Settings > Secretsare exported into the agent's runtime, which is right for tools the agent runs itself. For an HTTP API such as GitHub there is a second option that needs no code: connect a credential broker as an MCP server, and the agent uses the token without it being in its environment.This adds that as a third tab under Configuration Examples in MCP Settings, next to the proxy and stdio examples, and a one-line pointer to it from Secrets Management.
openhands/usage/settings/mcp-settings.mdx: newCredential Broker (SHTTP)tab with theAdd custom servervalues and the two header lines, in the same table format as the other tabs.openhands/usage/settings/secrets-settings.mdx: a note under "Using Secrets in the Agent" linking to the example.openhands/static/img/mcp-credential-broker.gif: a screen recording of Agent Canvas.The recording is Agent Canvas 1.45.0 running locally in Docker, following the steps in the new tab exactly:
Customize > MCP Servers > Add custom server,SHTTP,Headerauthentication,Test connection(9 tools),Add Server. In a new conversation the agent then finds no GitHub token in its environment, reads the three newest tags ofOpenHands/software-agent-sdkfromapi.github.comthrough the broker (they match GitHub), and has aDELETErefused by the broker. The agent key in theHeadersfield is blurred and waiting time for the model is shortened; nothing else is edited.The
X-1Claw-Toolsets=executeheader keeps the server to its brokered-call tools, so its tool names stay clear of Agent Canvas's built-in ones.Disclosure: I work on 1Claw, the broker in the example. If you would rather keep vendor names out of this page, I am glad to reword the tab around the pattern and move the specific values elsewhere.